<%@ page import="minusjudge.Clarification" %>



<div class="fieldcontain ${hasErrors(bean: clarificationInstance, field: 'question', 'error')} required">
	<label for="question">
		<g:message code="clarification.question.label" default="Question" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="question" required="" value="${clarificationInstance?.question}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: clarificationInstance, field: 'answer', 'error')} ">
	<label for="answer">
		<g:message code="clarification.answer.label" default="Answer" />
		
	</label>
	<g:textField name="answer" value="${clarificationInstance?.answer}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: clarificationInstance, field: 'contest', 'error')} required">
	<label for="contest">
		<g:message code="clarification.contest.label" default="Contest" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="contest" name="contest.id" from="${minusjudge.Contest.list()}" optionKey="id" required="" value="${clarificationInstance?.contest?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: clarificationInstance, field: 'date', 'error')} required">
	<label for="date">
		<g:message code="clarification.date.label" default="Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="date" precision="day"  value="${clarificationInstance?.date}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: clarificationInstance, field: 'user', 'error')} required">
	<label for="user">
		<g:message code="clarification.user.label" default="User" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="user" name="user.id" from="${minusjudge.User.list()}" optionKey="id" required="" value="${clarificationInstance?.user?.id}" class="many-to-one"/>
</div>

